#! /usr/bin/python
# coding: utf-8

from Tkinter import *

root = Tk()
cv = Canvas(root, bg='white')

d = [(0, 'none'), (1, 'last'), (2, 'both')]

for i in d:
    cv.create_line((10, 10+i[0]*20, 110, 110+i[0]*20), arrow = i[1], arrowshape='40 40 10')

cv.pack()

root.mainloop()
